<%@ page import="com.wy.utils.CookieUtils" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/22/022
  Time: 11:26
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>login</title>
</head>
<body>
<%
    Cookie[] cookies = request.getCookies();
    Cookie username = CookieUtils.getCookieByName("username", request);
    Cookie password = CookieUtils.getCookieByName("password", request);
    Cookie rememberMe = CookieUtils.getCookieByName("rememberMe", request);

%>
<form action="./login/login.do" method="get">
    用户名<input type="text" <%--<%if (username!=null){%>
              value="<%=username.getValue()%>"
    <%}%>--%> name="username"><br>
    密码<input type="password" name="password" <%--<%if (password!=null){%>
    value="<%=password.getValue()%>"
    <%}%>--%>><br>
    记住我<input type="checkbox" name="rememberMe" checked="<%=rememberMe==null?"checked":""%>"><br>
    <button type="submit">提交</button>
</form>
</body>
</html>
